package sivan.service;

import org.springframework.stereotype.Service;
import sivan.aspect.RateLimit;

/**
 * Created by sivan on 2019/3/23.
 */
@Service
public class StudentService {

    private UserService userService;

    public UserService getUserService() {
        return userService;
    }

    public void setUserService(UserService userService) {
        this.userService = userService;
    }

    @RateLimit
    public void say(){
        System.out.println("StudentService方法调用==========");
    }

    public void call(){
        this.userService.call();
    }
}
